home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / accountgone / accountgone.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-29  |  1.2 KB  |  45 lines

  1. /*
  2.  * accountgone.c --
  3.  *
  4.  *      Inform a user that their account has been deactivated.
  5.  *      This program can be listed as their shell in /etc/passwd.
  6.  *
  7.  * Copyright 1988 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  */
  16.  
  17. #ifndef lint
  18. static char rcsid[] = "$Header$";
  19. #endif
  20.  
  21. #include <stdio.h>
  22. #include <stdlib.h>
  23. #include <signal.h>
  24.  
  25. void
  26. main(argc, argv)
  27.     int argc;
  28.     char **argv;
  29. {
  30.  
  31.     signal(SIGHUP, SIG_IGN);
  32.     signal(SIGINT, SIG_IGN);
  33.     signal(SIGQUIT, SIG_IGN);
  34.     signal(SIGPIPE, SIG_IGN);
  35.     signal(SIGTERM, SIG_IGN);
  36.     signal(SIGSTOP, SIG_IGN);
  37.     signal(SIGTSTP, SIG_IGN);
  38.  
  39.     puts("Sorry, but your account has been deactivated.");
  40.     puts("If you need to login, please send mail to");
  41.     puts("root@sprite.Berkeley.EDU, or call 642-8282.");
  42.     exit(EXIT_SUCCESS);
  43. }
  44.  
  45.